From 7c7251a22c0cce802e5ff193bd6bbd4e769f7dbf Mon Sep 17 00:00:00 2001 From: Dat PHAM HOANG Date: Wed, 30 Aug 2023 10:41:37 +0700 Subject: [PATCH] [hotfix] check success of uploading recovery word --- lib/data/network/recovery_words/recovery_words_api.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/network/recovery_words/recovery_words_api.dart b/lib/data/network/recovery_words/recovery_words_api.dart index c18d5b8447..431433aaac 100644 --- a/lib/data/network/recovery_words/recovery_words_api.dart +++ b/lib/data/network/recovery_words/recovery_words_api.dart @@ -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; } }