코인 -> 캔 변경

This commit is contained in:
Yu Sung
2023-08-15 01:27:30 +09:00
parent 0f8b740469
commit 0959fa55be
17 changed files with 35 additions and 36 deletions

View File

@@ -108,9 +108,8 @@ struct LiveRoomDonationDialogView: View {
.background(Color(hex: "9970ff"))
.cornerRadius(6.7)
.onTapGesture {
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty,
let coin = Int(donationCan) {
donationCan = "\(coin + 100)"
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty, let can = Int(donationCan) {
donationCan = "\(can + 100)"
} else {
donationCan = "\(100)"
}