This commit is contained in:
Lucàs
2023-05-21 00:03:09 +02:00
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -122,8 +122,9 @@ export default function ModalInviteBar({
templateColumns={`repeat(${notificationMatch?.length}, 50%)`} templateColumns={`repeat(${notificationMatch?.length}, 50%)`}
gap={6} gap={6}
> >
{!isError && !error {!isError && !error ? (
? notificationMatch?.map((notif: Notification) => { notificationMatch?.length > 0 ? (
notificationMatch?.map((notif: Notification) => {
return ( return (
<CardMatchedUser <CardMatchedUser
key={notif.MatchedUserID} key={notif.MatchedUserID}
@@ -132,7 +133,10 @@ export default function ModalInviteBar({
/> />
); );
}) })
: null} ) : (
<Text fontSize={"xl"}>Aucun match</Text>
)
) : null}
</Grid> </Grid>
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter>
+1 -1
View File
@@ -22,7 +22,7 @@ const post = async (req: any, res: any) => {
const message = await prisma.message.create({ const message = await prisma.message.create({
data: { data: {
text: `<!lon=${bar.geo_point_2d.lon},lat=${bar.geo_point_2d.lat},name=${bar.name}>`, text: `<!lon=${bar.geo_point_2d.lon},lat=${bar.geo_point_2d.lat},name=${bar.name}!>`,
Chat: { Chat: {
connect: { connect: {
id: chat.id, id: chat.id,