Skip to content

Commit cbecdac

Browse files
committed
fix: restore empty text gating
1 parent d237b35 commit cbecdac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Bitkit/Views/Sheets/RenameHardwareWalletSheet.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ struct RenameHardwareWalletSheet: View {
4949

5050
CustomButton(
5151
title: t("common__save"),
52+
isDisabled: trimmedName.isEmpty,
5253
shouldExpand: true
5354
) {
5455
save()
@@ -65,6 +66,7 @@ struct RenameHardwareWalletSheet: View {
6566
}
6667

6768
private func save() {
69+
guard !trimmedName.isEmpty else { return }
6870
trezorManager.renameDevice(id: config.deviceId, newName: trimmedName)
6971
sheets.hideSheet()
7072
}

0 commit comments

Comments
 (0)