fix: fix permission criteria being empty (#4841)

Fixes https://github.com/status-im/status-desktop/issues/13775
This commit is contained in:
Jonathan Rainville 2024-02-29 16:25:34 -05:00 committed by GitHub
parent ff2eaf58e8
commit 390d706b3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -591,6 +591,9 @@ func (p *Persistence) GetPermissionTokenCriteriaResult(permissionID string, comm
criteria := make([]bool, 0)
for _, r := range strings.Split(criteriaString, ",") {
if r == "" {
continue
}
val, err := strconv.ParseBool(r)
if err != nil {
return nil, err