diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index a53cb54..4c1599a 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -229,7 +229,8 @@ func (h *Handlers) SaveYob(cxt context.Context, sym string, input []byte) (resou if err != nil { return res, err } - if len(input) > 0 { + yob := string(input) + if len(yob) > 4 { yob := string(input) accountData["YOB"] = yob updatedJsonData, err := json.Marshal(accountData)