Updated on 2026-08-14
This commit is contained in:
parent
31a8ee5dd4
commit
20695971eb
6 changed files with 2 additions and 136 deletions
|
|
@ -64,8 +64,7 @@ internal class AddressBookAnalyticsSender @Inject constructor(
|
|||
|
||||
/**
|
||||
* Fired when a save failure is surfaced to the user. [contactId] is set only in edit mode. Validation failures
|
||||
* ([SaveContactError.Name]/[SaveContactError.Address]) are shown inline rather than as a save error, so they do
|
||||
* not produce this event.
|
||||
* ([SaveContactError.Name]) are shown inline rather than as a save error, so they do not produce this event.
|
||||
*/
|
||||
fun sendSaveErrorShown(walletId: UserWalletId, contactId: String?, error: SaveContactError) {
|
||||
val errorType = error.toErrorType() ?: return
|
||||
|
|
@ -85,9 +84,7 @@ internal class AddressBookAnalyticsSender @Inject constructor(
|
|||
AddressBookSyncError.Network -> ErrorType.Network
|
||||
else -> ErrorType.Server
|
||||
}
|
||||
is SaveContactError.Name,
|
||||
is SaveContactError.Address,
|
||||
-> null
|
||||
is SaveContactError.Name -> null
|
||||
}
|
||||
|
||||
fun sendSaveToButtonClicked() {
|
||||
|
|
|
|||
|
|
@ -172,7 +172,6 @@ internal class AddressBookAnalyticsSenderTest {
|
|||
),
|
||||
// Validation failures are shown inline, not as a save error.
|
||||
SaveErrorModel(error = SaveContactError.Name(mockk()), expectedType = null),
|
||||
SaveErrorModel(error = SaveContactError.Address(mockk()), expectedType = null),
|
||||
)
|
||||
|
||||
private companion object {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue