Skip to content

Commit 8313f36

Browse files
committed
Fix accidental commit of env files
1 parent de1b5fb commit 8313f36

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
NEXTAUTH_URL=http://127.0.0.1:3000
2-
DATABASE_URL=postgres://wille:wille@localhost:5432/osm-teams?sslmode=disable
2+
DATABASE_URL=postgres://postgres:postgres@localhost:5433/osm-teams?sslmode=disable

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NEXTAUTH_URL=http://127.0.0.1:3000
22
NEXTAUTH_SECRET=next-auth-cypress-secret
3-
DATABASE_URL=postgres://wille:wille@localhost:5432/osm-teams-test
3+
DATABASE_URL=postgres://postgres:postgres@localhost:5434/osm-teams-test
44
TESTING=true
55
LOG_LEVEL=silent
66
AUTH_URL=http://127.0.0.1:3000

src/components/add-member-form.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,27 +156,24 @@ export function AddMemberByUsernameForm({ onSubmit }) {
156156
<Box display='flex' justifyContent='stretch' py={3} px={1}>
157157
<List spacing={5} fontSize='sm' width={'100%'}>
158158
{searchResult?.length &&
159-
searchResult.map((result) => (
159+
searchResult.map((u) => (
160160
<ListItem
161-
key={result.id}
161+
key={u.id}
162162
display='flex'
163163
alignItems='center'
164164
justifyContent='space-between'
165165
marginTop='1rem'
166166
>
167167
<ListIcon as={AtSignIcon} color='brand.600' />
168-
<Link
169-
href={join(OSM_DOMAIN, '/user', result.name)}
170-
isExternal
171-
>
172-
{result.name}
168+
<Link href={join(OSM_DOMAIN, '/user', u.name)} isExternal>
169+
{u.name}
173170
</Link>
174-
<Code ml={2}>{result.id}</Code>
171+
<Code ml={2}>{u.id}</Code>
175172
<Button
176173
ml='auto'
177174
textTransform='lowercase'
178175
onClick={async () =>
179-
submit(result.id, result.name, {
176+
submit(u.id, u.name, {
180177
setStatus,
181178
setSubmitting,
182179
resetForm,

0 commit comments

Comments
 (0)