fix(SW-556): reverse conditional
This commit is contained in:
@@ -42,10 +42,9 @@ export default function Surprises({
|
||||
}
|
||||
|
||||
function viewRewards(id?: string) {
|
||||
if (!id) {
|
||||
return
|
||||
if (id) {
|
||||
update.mutate({ id })
|
||||
}
|
||||
update.mutate({ id })
|
||||
}
|
||||
|
||||
function closeModal(close: VoidFunction) {
|
||||
|
||||
Reference in New Issue
Block a user