Skip to content

Commit

Permalink
use help link instead of complianceSupportEmail for updated string (#221
Browse files Browse the repository at this point in the history
)

complianceSupportEmail no longer available, see related [web
PR](dydxprotocol/v4-web@f24f949)
and [updated string params
pr](https://github.com/dydxprotocol/v4-localization/pull/676/files)

see [iOS PR](dydxprotocol/v4-native-ios#240) as
well for reference

Co-authored-by: Mike <[email protected]>
  • Loading branch information
mike-dydx and mike-dydx authored Sep 4, 2024
1 parent b01ddc7 commit 514ad42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ class DydxRestrictionsWorker(
FIRST_STRIKE,
FIRST_STRIKE_CLOSE_ONLY,
CLOSE_ONLY -> {
val params = mapOf("DATE" to compliance.expiresAt.orEmpty(), "EMAIL" to abacusStateManager.environment?.links?.complianceSupportEmail.orEmpty())
val params = mapOf("DATE" to compliance.expiresAt.orEmpty(), "HELP_LINK" to abacusStateManager.environment?.links?.help.orEmpty())
localizer.localize("APP.COMPLIANCE.CLOSE_ONLY_TITLE") to localizer.localizeWithParams("APP.COMPLIANCE.CLOSE_ONLY_BODY", params)
}
BLOCKED -> {
val params = mapOf("EMAIL" to abacusStateManager.environment?.links?.complianceSupportEmail.orEmpty())
val params = mapOf("HELP_LINK" to abacusStateManager.environment?.links?.help.orEmpty())
localizer.localize("APP.COMPLIANCE.PERMANENTLY_BLOCKED_TITLE") to localizer.localizeWithParams("APP.COMPLIANCE.PERMANENTLY_BLOCKED_BODY", params)
}
}
Expand Down

0 comments on commit 514ad42

Please sign in to comment.