From f915c7e3714a297d2eb90238b328d45203c9f211 Mon Sep 17 00:00:00 2001 From: Tobias Speicher Date: Mon, 4 Apr 2022 04:55:50 +0200 Subject: [PATCH] refactor: replace deprecated String.prototype.substr() .substr() is deprecated so we replace it with functions which work similarily but aren't deprecated Signed-off-by: Tobias Speicher --- idp/ui/src/containers/Login/Chooseaccount.js | 2 +- idp/ui_config/paths.js | 2 +- settings/ui/components/SettingsBundle.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/idp/ui/src/containers/Login/Chooseaccount.js b/idp/ui/src/containers/Login/Chooseaccount.js index 5eba58f4f..fd40b7ab6 100644 --- a/idp/ui/src/containers/Login/Chooseaccount.js +++ b/idp/ui/src/containers/Login/Chooseaccount.js @@ -85,7 +85,7 @@ function Chooseaccount({ loading, errors, classes, hello, history, dispatch }) { className={classes.accountListItem} disabled={!!loading} onClick={(event) => logon(event)} - >{username.substr(0, 1)} + >{username.slice(0, 1)}