mirror of
https://github.com/LucasVbr/meeting-app.git
synced 2026-05-13 17:21:53 +00:00
fix(display no match): display no match on modalInviteMatch
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user