File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ watchEffect(() => {
6262const password = ref (" " );
6363const confirmPassword = ref (" " );
6464
65+ const userId = ref <string >();
66+
6567async function submitNewPassword() {
6668 loading .value = true ;
6769
@@ -75,6 +77,8 @@ async function submitNewPassword() {
7577 });
7678
7779 setMe (passwordResponse .user );
80+ userId .value = passwordResponse .user .id ;
81+
7882 page .value = " done" ;
7983 } catch (error ) {
8084 if (getApiErrorCode (error ) === " RESOURCE_NOT_FOUND" ) {
@@ -174,8 +178,7 @@ async function submitNewPassword() {
174178 </p >
175179
176180 <p >
177- <!-- TODO: Ensure this link works, or change it to use the user ID. -->
178- <Button href =" /files/u/me" >Visit Your Garden</Button >
181+ <Button :href =" `/files/u/${userId}`" >Visit Your Garden</Button >
179182 </p >
180183 </template >
181184
You can’t perform that action at this time.
0 commit comments