Skip to content

Commit

Permalink
Corrected to handle missing 'en' language
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Jaeger-Freeborn <[email protected]>
  • Loading branch information
Gavinok committed Nov 15, 2024
1 parent 65a24af commit c91cc49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oidc-controller/api/routers/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def get_authorize(request: Request, db: Database = Depends(get_db)):
"claims": (
ver_config.metadata.claims
if ver_config.metadata and ver_config.metadata.claims
else []
else {"en": []}
),
}

Expand Down
2 changes: 1 addition & 1 deletion oidc-controller/api/templates/verified_credentials.html
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ <h5 v-if="state.showScanned" class="fw-bolder mb-3">
const mobileDevice = ref(
getBrowser() === "Android" || getBrowser() === "iOS" ? true : false
);
const claims = ref(JSON.parse('{{claims|tojson}}')['en']);
const claims = ref(JSON.parse('{{claims|tojson}}')['en'] ?? []);

return {
mobileDevice,
Expand Down

0 comments on commit c91cc49

Please sign in to comment.