fix(SW-556): reverse conditional

This commit is contained in:
Christian Andolf
2024-10-16 17:05:52 +02:00
parent dcfa0d9bd8
commit 5eb788735f

View File

@@ -42,11 +42,10 @@ export default function Surprises({
}
function viewRewards(id?: string) {
if (!id) {
return
}
if (id) {
update.mutate({ id })
}
}
function closeModal(close: VoidFunction) {
viewRewards()