mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
feat(INJI-172): display error popup to restrict vc share when audit entry is not possible
audit entry cannot be made when the device remaining storage has reached the minimumStorageRequiredForAuditEntryInMB Issue Link https://mosip.atlassian.net/browse/INJI-172
This commit is contained in:
@@ -39,7 +39,9 @@ export const RequestScreen: React.FC = () => {
|
||||
useFocusEffect(
|
||||
React.useCallback(() => {
|
||||
async function checkStorage() {
|
||||
const isStorageLimitReached = await isMaximumStorageLimitReached();
|
||||
const isStorageLimitReached = await isMaximumStorageLimitReached(
|
||||
'maximumStorageLimitInMB'
|
||||
);
|
||||
if (isStorageLimitReached) {
|
||||
setShowMaximumStorageLimitReachedError(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user