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%)`}
gap={6}
>
{!isError && !error
? notificationMatch?.map((notif: Notification) => {
{!isError && !error ? (
notificationMatch?.length > 0 ? (
notificationMatch?.map((notif: Notification) => {
return (
<CardMatchedUser
key={notif.MatchedUserID}
@@ -132,7 +133,10 @@ export default function ModalInviteBar({
/>
);
})
: null}
) : (
<Text fontSize={"xl"}>Aucun match</Text>
)
) : null}
</Grid>
</ModalBody>
<ModalFooter>
+1 -1
View File
@@ -22,7 +22,7 @@ const post = async (req: any, res: any) => {
const message = await prisma.message.create({
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: {
connect: {
id: chat.id,