Skip to content

Commit

Permalink
[hotfix] check success of uploading recovery word
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdat committed Aug 30, 2023
1 parent 55604aa commit 7c7251a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data/network/recovery_words/recovery_words_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ class RecoveryWordsAPI {
data: RecoveryWordsResponse(words: recoveryWords),
)
.onError((error, stackTrace) => throw Exception(error));
return response.statusCode == 200;
return response.statusCode >= 200 && response.statusCode <= 299;
}
}

0 comments on commit 7c7251a

Please sign in to comment.