fix: fix permission criteria being empty (#4841)
Fixes https://github.com/status-im/status-desktop/issues/13775
This commit is contained in:
parent
ff2eaf58e8
commit
390d706b3f
|
@ -591,6 +591,9 @@ func (p *Persistence) GetPermissionTokenCriteriaResult(permissionID string, comm
|
||||||
|
|
||||||
criteria := make([]bool, 0)
|
criteria := make([]bool, 0)
|
||||||
for _, r := range strings.Split(criteriaString, ",") {
|
for _, r := range strings.Split(criteriaString, ",") {
|
||||||
|
if r == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
val, err := strconv.ParseBool(r)
|
val, err := strconv.ParseBool(r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue