Update BottomModal.tsx

This commit is contained in:
Marcos Rodriguez Velez 2024-08-24 14:08:00 -04:00
parent 5d67c70728
commit 9973b8ae74

View File

@ -87,8 +87,12 @@ const BottomModal = forwardRef<BottomModalHandle, BottomModalProps>(
}));
const dismiss = async () => {
await onCloseModalPressed?.();
await trueSheetRef.current?.dismiss();
try {
await onCloseModalPressed?.();
await trueSheetRef.current?.dismiss();
} catch (error) {
console.error('Error during dismiss:', error);
}
};
const renderTopRightButton = () => {