get rid of usages of substr which is deprecated

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-01-23 14:20:17 +01:00
parent fc94542b2a
commit 85b04f659a
18 changed files with 37 additions and 21 deletions
@@ -81,7 +81,7 @@ const renderSource = (build: BitriseBuildResult): React.ReactNode => {
rel="noreferrer"
startIcon={<GitHubIcon />}
>
{build.commitHash.substr(0, 6)}
{build.commitHash.slice(0, 6)}
</Button>
) : null;
};