diff --git a/internal/handler/settings.go b/internal/handler/settings.go index a9cd5f7..9cf4bce 100644 --- a/internal/handler/settings.go +++ b/internal/handler/settings.go @@ -562,8 +562,13 @@ func (h *Handler) processRateInput(ctx context.Context, msg *models.Message, use } h.saveRate(ctx, msg.Chat.ID, user, rate) backKB := settingsBackKeyboard() + st, _ := h.Repo.GetOrCreateSettings(user.ID) + sym := "$" + if st != nil && st.Currency != "" { + sym = domain.CurrencySymbol(st.Currency) + } h.editText(ctx, msg.Chat.ID, pi.MsgID, - fmt.Sprintf("Hourly rate set to %s%.2f", domain.CurrencySymbol(""), rate), &backKB) + fmt.Sprintf("Hourly rate set to %s%.2f", sym, rate), &backKB) } func (h *Handler) processCurrencyInput(ctx context.Context, msg *models.Message, user *domain.User, pi *PendingInput, text string) {