refactor!: support RUB only (WealthLedger/main#55) (#168)
This commit was merged in pull request #168.
This commit is contained in:
@@ -64,7 +64,7 @@ function toIncomeSummary(
|
||||
if (income.meta?.completeness === "incomplete") return { state: "partial", to };
|
||||
if (!income.data && (income.isError || income.meta?.lastAttempt.state === "failed"))
|
||||
return { state: "error", to };
|
||||
if (!income.data?.totalsByCurrency.length) return { state: "empty", to };
|
||||
if (!income.data) return { state: "empty", to };
|
||||
|
||||
return {
|
||||
state: "loaded",
|
||||
|
||||
Reference in New Issue
Block a user