Skip to content

Commit 08f6dda

Browse files
committed
fix: filter valid condition
only is valid if the result have a method and the method is not empty Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c8c593f commit 08f6dda

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/Controller/IdentifyAccountController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ private function excludeEmptyShareWith(array $list): array {
225225
}
226226

227227
private function excludeNotAllowed(array $list): array {
228-
$shareTypes = $this->getShareTypes();
229-
return array_filter($list, fn ($result) => in_array($result['shareType'], $shareTypes));
228+
return array_filter($list, fn ($result) => isset($result['method']) && !empty($result['method']));
230229
}
231230

232231
private function replaceShareTypeByMethod(array $list): array {

0 commit comments

Comments
 (0)