Protect against non functions being passed to close callback (#3019)
This commit is contained in:
@@ -89,7 +89,7 @@ export function Cancel({
|
||||
color="secondary"
|
||||
size="small"
|
||||
label={_(msg`Cancel`)}
|
||||
onPress={close}>
|
||||
onPress={() => close()}>
|
||||
{children}
|
||||
</Button>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user