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%)`}
|
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>
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user