Skip to content

Commit

Permalink
style: reformat source
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Nov 9, 2023
1 parent 46d756e commit a96ec22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/NordicPlayground/thingy-rocks-dashboard-aws-js)](https://mergify.io)
[![@commitlint/config-conventional](https://img.shields.io/badge/%40commitlint-config--conventional-brightgreen
)](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional)
[![@commitlint/config-conventional](https://img.shields.io/badge/%40commitlint-config--conventional-brightgreen)](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier/)
[![ESLint: TypeScript](https://img.shields.io/badge/ESLint-TypeScript-blue.svg)](https://github.com/typescript-eslint/typescript-eslint)

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
9 changes: 6 additions & 3 deletions src/WithCredentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ export const WithCredentials = ({
useEffect(() => {
if (credentials === undefined) return

const t = setTimeout(() => {
refreshCredentials().catch(console.error)
}, (credentials.expiration as Date).getTime() - new Date().getTime())
const t = setTimeout(
() => {
refreshCredentials().catch(console.error)
},
(credentials.expiration as Date).getTime() - new Date().getTime(),
)

return () => {
clearTimeout(t)
Expand Down

0 comments on commit a96ec22

Please sign in to comment.